import request from '@/utils/request'

export default {
  // 虫情设备列表
  wormList() {
    return request({
      url: '/nyDevice/wormList',
      method: 'get'
    })
  },
  // 虫情设备历史记录
  getWormHistoryData(query) {
    return request({
      url: '/nyDevice/getWormHistoryData',
      method: 'get',
      params: query
    })
  },
  // 虫情设备实时数据
  getRealTimeData(data) {
    return request({
      url: '/nyDevice/getRealTimeData',
      method: 'post',
      data: data
    })
  }
}
